<template>
  <div id="app">
    <keep-alive>
      <router-view class="router-view"></router-view> 
    </keep-alive>
    <!-- <nav-menu bottom="1.3" v-show="navMenuShow"></nav-menu> -->
  </div>
</template>

<script>
import navMenu from './components/tpl/navMenu'
// const LocationList =['homePage','messagePage','userPage']    //不显示快速浏览的页面路由(取name属性) 
// const LocationList = []
export default {
  name: 'App',
  data(){
      return {
          navMenuShow:false
      }
  },
  watch:{
    '$route'(now,b){
        let vm = this;
        // if(LocationList.indexOf(now.name)!=-1){
        //   vm.navMenuShow=false;
        // }else{
        //   vm.navMenuShow=true;
        // }
          vm.navMenuShow=false;

    }
  },
  components:{
    navMenu
  }
}
</script>

<style lang="scss">
#app {
  font-family: Arial, "PingFang SC", "lucida grande", "lucida sans unicode", lucida, helvetica, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size:0.373333rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  ::-webkit-scrollbar {
    width: 0;
  }
}
html,body,#app {
	height:100%;
	background:#f2f2f2;
}
.router-view {
	width: 100%;
	height:100%;
	margin:0 auto;
}
</style>
